From 3ba0fe99ada80f22920242f50379ae4ec548158d Mon Sep 17 00:00:00 2001 From: robertl Date: Fri, 4 Nov 2005 23:20:13 +0000 Subject: [PATCH] Doc nuke types. Misc minor cleanups. --- gpsbabel/readme.xml | 74 +++++++++++++++++++++++++++++---------------- 1 file changed, 48 insertions(+), 26 deletions(-) diff --git a/gpsbabel/readme.xml b/gpsbabel/readme.xml index 36bcf155e..8c5a69b77 100644 --- a/gpsbabel/readme.xml +++ b/gpsbabel/readme.xml @@ -274,8 +274,7 @@ routed just like local roads, but may be edited with the drawing tools in Street Atlas. This option has a special format that is best demonstrated by example: - "road=I-599!limited!Beecher -St.!major" + "road=I-599!limited!Beecher St.!major" This option will cause any road named "I-599" to become a limited- access highway and any road named "Beecher St." to become a @@ -304,7 +303,7 @@ create a three dimensional IGC file. BCR This file format (extension .bcr) is used in "Motorrad -Routenplaner 2002-..." by Map&Guide. It is a route-onle +Routenplaner 2002-..." by Map&Guide. It is a route-onle format. If you own a newer release (2005...) you can also use the XML export and convert via gpsbabel ... -i tef ... to your preferred format. May be there are other @@ -331,8 +330,10 @@ differences. An example with all options - gpsbabel -r \ -i gpx -f in.gpx --o bcr,index=1,name="From A to B",radius=6371012 \ -F a_to_b.bcr + gpsbabel -r \ + -i gpx -f in.gpx +-o bcr,index=1,name="From A to B",radius=6371012 \ -F a_to_b.bcr + @@ -683,20 +684,20 @@ url="http://www.garmin.com">http://www.garmin.com GOOGLE This format is designed to read the XML emitted when you -tack "&output=js" onto the end of a Google Maps route URL (use +tack "&output=js" onto the end of a Google Maps route URL (use the "link to this page" option to get a usable URL.) This allows you to plan a route using Google Maps, then download it and use it in your own mapping program or GPS receiver. If you use a Unix-compatible operating system, this shell script might be useful: - #!/bin/sh FROM="233 S. Upper -Wacker Dr, Chicago, IL" TO="1060 W. Addison St, Chicago, IL" wget -O - -"http://maps.google.com/maps?q=$FROM to $TO&output=js" \ -2>/dev/null >google_map.js - - gpsbabel -i google -f -google_map.js -o gpx -F google_map.gpx - + +#!/bin/sh +FROM="233 S. Upper Wacker Dr, Chicago, IL" +TO="1060 W. Addison St, Chicago, IL" +wget -O - "http://maps.google.com/maps?q=$FROM to $TO&output=js" \ +2&>/dev/null >google_map.js +gpsbabel -i google -f google_map.js -o gpx -F google_map.gpx + Note that Internet Explorer has been observed to damage the XHTML beyond recognition so use a better browser to save the pages such as Firefox or Mozilla. @@ -863,8 +864,8 @@ Groundspeak cache logs. Groundspeak extensions and writes an HTML file with encrypted hints that is rendered using a custom stylesheet: - gpsbabel -i gpx -f 12345.gpx \ -o -html,stylesheet=green.css,encrypt -F 12345.html + gpsbabel -i gpx -f 12345.gpx \ + -o html,stylesheet=green.css,encrypt -F 12345.html
@@ -941,7 +942,7 @@ tracks
- Palm OS for Map&Guide format + Palm OS for Map & Guide format mag_pdb With this format we support the Palm/OS export for @@ -1229,7 +1230,8 @@ Groundspeak extensions and writes a Palm document with encrypted hints and logs: gpsbabel -i gpx -f 12345.gpx \ -o -"palmdoc,dbname=Unfound Geocaches,encrypt,logs" \ -F 12345.pdb + "palmdoc,dbname=Unfound Geocaches,encrypt,logs" \ + -F 12345.pdb
@@ -1563,8 +1565,9 @@ whether or not to force uppercase in shortnames. (0 = LEAVE AS IS, 1 line option. Example Usage: - gpsbabel -i -xcsv,style=foo.style -f foo \ -o xcsv,style=bar.style \ -F bar + gpsbabel -i xcsv,style=foo.style -f foo \ + -o xcsv,style=bar.style \ + -F bar gpsbabel -s -i gpx -f foo.gpx \ -o xcsv,style=my.style,snlen=8 -F bar @@ -1653,7 +1656,7 @@ mentioned above. Contributed to GPSBabel by Alex Mottram. For example: gpsbabel -i geo -f 1.loc \ -x radius,distance=1.5M,lat=30.0,lon=-90.0 \ - -o mapsend + -o mapsend \ -F 2.wpt would include only points within 1.5 miles of N30.000 @@ -1670,7 +1673,8 @@ mentioned above. Contributed to GPSBabel by Alex Mottram. one of these options is REQUIRED. For example: - gpsbabel -i gpx -f 1.gpx -f 2.gpx -x duplicate,location,shortname \ -o gpx -F merged_with_no_dupes.gpx + gpsbabel -i gpx -f 1.gpx -f 2.gpx -x duplicate,location,shortname \ + -o gpx -F merged_with_no_dupes.gpx would remove points that have duplicate shortnames *AND* duplicate locations. The result would be a GPX file @@ -1796,8 +1800,7 @@ mentioned above. Contributed to GPSBabel by Alex Mottram. gpsbabel -r -i saroute -f RoadTrip.anr \ -x simplify,count=50 \ - -o magellan - -F grocery.rte + -o magellan -F grocery.rte
@@ -1921,8 +1924,9 @@ following options are available: UNIX date or strftime for details) are possible. -gpsbabel -t \ -i gpx -f in.gpx \ -x track,pack,split,title="ACTIVE -LOG-%D" \ -o gpx -F out.gpx PACK +gpsbabel -t \ + -i gpx -f in.gpx \ -x track,pack,split,title="ACTIVE LOG-%D" \ +-o gpx -F out.gpx PACK MOVE Change the time of all trackpoints. This is useful if @@ -2028,5 +2032,23 @@ gpsbabel -t \ Contributed by Tobias Minich.
+
+ NUKETYPES + + There are three main types of data that GPSBabel deals with: + waypoints, tracks, and routes. The nuketypes filter allows + removing all the data of any or all of those three types. + + - Removes all waypoints. + - Removes all routes. + - Removes all routes. + + For example, if you have a GPX file that contains routes, tracks, and + waypoints and you want a GPX file that contains only tracks, + you can use this filter to remove the waypoints with this command: + + gpsbabel -i gpx -f bigfile.gpx -x nuketypes,waypoints,routes -o gpx -F tracksonly.gpx + +
-- 2.30.2